<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 4.01 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%@ page language="java" pageEncoding="UTF-8" import="java.util.*"%>
<%@ include file="/pages/safeai/jsp/common/taglibs.jsp"%>
<html>
<head>
<title>品牌管理</title>
<script type='text/javascript' src='${ctx}/dwr/interface/filterService.js'></script>
<script type='text/javascript' src='${ctx}/dwr/engine.js'></script>
<script type="text/javascript" src="${ctx}/script/common/common.js"></script>
<script type="text/javascript" src="${ctx}/script/product/Brand.js"></script>
<script type='text/javascript' src='${ctx}/dwr/interface/brandService.js'></script>
<script type='text/javascript' src='${ctx}/dwr/engine.js'></script>

<link href="${ctx}/css/safeai/together.css" rel="stylesheet" type="text/css">
<%@ include file="/pages/safeai/jsp/common/meta.jsp"%>
<%
	Date d = new Date();
	Long time = d.getTime();
%>
</head>
  <body>
     <table align="center" width="90%">
	    <tr>
	    	<th class="td_01" height="25px">名称</th>
	    	<th class="td_01">英文名称</th>
	    	<th class="td_01">图片</th>
	    	<th class="td_01">状态</th>
	    	<th class="td_01">顺序</th>
	    	<th class="td_01">点击量</th>
			<th class="td_01">选择</th>
	    </TR>
	    <logic:present name="BrandList">
	    	<logic:iterate id="brand" name="BrandList">
	    		<tr>
	    			<td class="td_03">${brand.name}</td>
	    			<td class="td_03">${brand.enName }</td>
	    			<td class="td_03"><img src="${ctx}/${brand.image}?time=<%=time%>" /></td>
	    			<td class="td_03">${brand.status==1?'√':'Ⅹ'}</td>
	    			<td class="td_03">${brand.sequence }</td>
	    			<td class="td_03">${brand.clicks }</td>
	    			<td class="td_03"> <input id="checkboxes" value="${brand.id}" type="checkbox" name="checkboxes"/></td>
	    		</tr>
	    	</logic:iterate>
	    </logic:present>
	    <tr >
	    	<td colspan="7" align="center">
	    		<div style="float:left">&nbsp;&nbsp;&nbsp;&nbsp;<a href="${ctx}/brand/brandMessage.do?method=toAddBrand">添加</a>&nbsp;&nbsp;&nbsp;&nbsp;
	    		<a href="#" onClick="toUpdate();">修改</a>
	    		</div>
	    		<input type="button" name="delete" class="btn" onClick="deleteList();" value="删除"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	    		<input type="button" name="selectAll" class="btn" onclick="checkAll(checkboxes);" value="全选"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	    		<input type="button" name="reverseSelect" class="btn" onclick="reverse(checkboxes);" value="反选"/>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
	    		<input type="button" name="reset" class="btn" onclick="uncheck(checkboxes);"  value="取消"/>
	    	</td>
	    </tr>
	   </table>
  </body>
</html>
